home *** CD-ROM | disk | FTP | other *** search
- BackTick (2.x/3.x ONLY) (CLI Function)
-
-
- NAME
-
- BackTick- Allows you to include the text output of
- one command to be the input of another command.
-
- SYNOPSIS
- SomeCLICommand `AnotherCommand`
-
- DESCRIPTION
- This is a new and important feature of 2.x/3.x.
- BackTick lets you insert the text output of one command
- to be the input of another command. For instance, if you
- wanted to print the contents of the Work:ESCOM directory
- with an informative header you would type this:
-
- ECHO >prt: "The directories in work are:" `Dir
- Work:ESCOM`
-
- It's a good idea to know where this key is, so I'll
- tell you. It is the key right above the Tab key. The
- unshifted version of that key is the BackTick (`), the
- shifted version is the Tilde (~). If you try to use the
- parenthesis key (') your command will fail. There is a
- difference between those two keys even though they look
- similar on the screen.
-
- The backtick command always evaluates itself at the
- time it is issued. If you wish to have the backtick
- command evaluated after several other commands have been
- issued you must place the asterix (*) escape character
- before each backtick.
-
- For instance, lets say you want to create an alias
- which displays the contents of the Gould:Loser directory.
- You would type:
-
- Alias grovel Echo "Contents of the Loser directory is: *`dir Gould:Loser*`
-
- Now, whenever you want to see what is in that
- directory you merely type 'grovel' and it will be shown.
- But, if you don't include the asterixes then any changes
- made to the Gould:Loser directory will not be reflected.
- You will only see what was in that directory when the
- Alias was first made.
-
- With some experimentation you will find this DOS
- function to be one of the most useful.
-